package cn.south.campus.admin.campus.model.entity;

import cn.south.campus.common.model.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 校园吐槽表
 * </p>
 *
 * @author chow
 * @since 2024-12-05
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("campus_complaint")
public class Complaint extends BaseEntity {

    /**
     * 图片
     */
    private String pic;

    /**
     * 内容
     */
    private String content;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户头像
     */
    @TableField(exist = false)
    private String avatar;

    /**
     * 用户昵称
     */
    @TableField(exist = false)
    private String nickname;

    @TableField(exist = false)
    private String phone;

    /**
     * 0:已撤销 1:待发布 2:已发布
     */
    private Integer status;

    /**
     * 发布时间
     */
    private LocalDateTime publishTime;
}
